<?
$registry = App::GetRegistry();

if($section = $data->GetSection('settings'))
{
    $table = new Table('section_settings');

    $settings = $table->getEntity($section->id);

    $registry->obSettings = $settings;
}

/*if($section = $data->GetSection('settings_contacts'))
{
    $table = new Table('section_contacts');

    $settings_contacts = $table->getEntity($section->id);

    $registry->obContacts = $settings_contacts;
}
*/
if($_SERVER['HTTP_HOST'] == 'landing.tiangroup.su')
{
    $skin = App::GetCookie('skin');
    if(Utils::GetVar('skin'))
    {
        $skin = Utils::GetVar('skin');
        if($skin == 'default')
        {
            $skin = '';
            App::DelCookie('skin');
        }
        else
        {
            App::SetCookie('skin',$skin);
        }


    }
    if($skin)
    {
        $registry->obSettings->skin = $skin;
    }
    $registry->skin_template = true;
}

